home *** CD-ROM | disk | FTP | other *** search
- From: flaps@dgp.toronto.edu (Alan J Rosenthal)
- Subject: astonishing LaunchApplication fact!
- Organization: Dynamic Graphics Project, University of Toronto
- Date: 7 Jul 93 18:58:31 GMT
- Lines: 16
-
-
- I have discovered that the FSSpec pointed to by the launchAppSpec field in the
- parameter block for LaunchApplication is accessed AFTER LaunchApplication
- RETURNS. Thus you should not free it immediately afterwards, or if it is a
- local variable of a procedure, you must declare it as static so it persists if
- you're going to return from that procedure in the near future.
-
- This is what my problem last week with regards to launching applications with
- documents was really all about.
-
- It is consistent with my observations for it to be the case that this field is
- accessed only when the application is actually launched, which occurs when you
- do your next WaitNextEvent. In any case though, this pointer you pass in is
- being held on to for some amount of time.
-
- Alan "an Apple(tm) a day keeps your MacsBug away" Rosenthal